from utility.pgsql_manager import PgSqlManager

pgDB = PgSqlManager().get_instance()
# log表模型
class LogModel(pgDB.Model):
    __tablename__ = 'inspection_log'
    id = pgDB.Column(pgDB.Integer, primary_key=True, doc='档案Id')
    create_uid = pgDB.Column(pgDB.Integer)
    write_uid = pgDB.Column(pgDB.Integer)
    archives_id = pgDB.Column(pgDB.Integer, pgDB.ForeignKey('res.archives.id'))
    tgjx_id = pgDB.Column(pgDB.Integer)
    cjda_id = pgDB.Column(pgDB.Integer)
    wx_id = pgDB.Column(pgDB.Integer)
    sys_id = pgDB.Column(pgDB.Integer)
    zdcl_id = pgDB.Column(pgDB.Integer)
    name = pgDB.Column(pgDB.String)
    type = pgDB.Column(pgDB.String)
    state = pgDB.Column(pgDB.String)
    create_date = pgDB.Column(pgDB.Integer)
    write_date = pgDB.Column(pgDB.Integer)


